package word511;

public class PrintStu implements Runnable{
    private String name;
    private String sex;
    private String age;

    PrintStu(String stu1, String stu2, String stu3){
        this.name = stu1;
        this.sex = stu2;
        this.age = stu3;

    }

    public String toString(){

        return "学生姓名："+name+" 性别："+sex+" 年龄："+age;
    }



    @Override
    public void run() {
        System.out.println(toString());
    }
}
